package egovframework.nanum.portal.cnfg.common.configuration;

import org.springframework.core.env.Environment;

import com.nanum.portal.cnfg.common.file.FileManager.ImageType;

public class ImageSubLocationRegistry extends ConfigurationRegistry<ImageType> {

	private Environment env;

	public ImageSubLocationRegistry(Environment env) {
		this.env = env;
		this.initialize();
	}
	
	private void initialize() {

		this.add(ImageType.LOGO		, env.getProperty("upload.logo.sublocation"));
		this.add(ImageType.BANNER	, env.getProperty("upload.banner.sublocation"));
		
		logger.debug("sublocation initialized... " + this.getRegistry());
	}

}
